package xyz.poke.business.tool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 成交商品
 * </p>
 *
 * @author 迫壳
 * @since 2024-03-02
 */
@TableName("t_deal_item")
public class DealItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 单据id
     */
    private Long orderId;

    /**
     * 商品成交金额
     */
    private Long price;

    /**
     * 商品成交数量
     */
    private Long quantity;

    /**
     *  创建人ID
     */
    private Long creator;

    /**
     *  创建人姓名
     */
    private String createdName;

    /**
     *  创建时间
     */
    private LocalDateTime gmtCreated;

    /**
     *  更新时间
     */
    private LocalDateTime gmtModified;

    /**
     * 是否删除 1-是 0-否
     */
    private Boolean isDel;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public String getCreatedName() {
        return createdName;
    }

    public void setCreatedName(String createdName) {
        this.createdName = createdName;
    }

    public LocalDateTime getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(LocalDateTime gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "DealItem{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", price=" + price +
        ", quantity=" + quantity +
        ", creator=" + creator +
        ", createdName=" + createdName +
        ", gmtCreated=" + gmtCreated +
        ", gmtModified=" + gmtModified +
        ", isDel=" + isDel +
        "}";
    }
}
